package com.taylor.spring5.entity;

/**
 * @author taylor
 * @Description: 员工类
 * @date 2021/4/1 23:11
 */
public class Emp {
    private String  ename;
    private String  gender;
    //员工属于某一个部门，使用对象形式表示
    private Dept  dept;

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this. dept = dept;
    }

    public void setEname(String ename) {
        this. ename = ename;
    }
    public void setGender(String gender) {
        this. gender = gender;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "ename='" + ename + '\'' +
                ", gender='" + gender + '\'' +
                ", dept=" + dept +
                '}';
    }
}
